#  This material contains proprietary software of Entropic Speech, Inc.  
#  Any reproduction, distribution, or publication without the the prior   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice:
#
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
#
#  @(#)Makefile	1.1	12/3/87 ESI

CFLAGS = -g $(PROGCFLAGS)

OBJS = corrupt.o

SRCS = corrupt.c

corrupt: $(OBJS) $(SPSLIB)
	cc $(CFLAGS) $(OBJS) $(SPSLIB) -lm -o corrupt

corrupt.o:	$(SINC)/esps.h $(SINC)/fea.h $(SINCL)/fea2kb.h

install: corrupt
	-strip corrupt
	-mv -f $(BINDIR)/corrupt $(OLDBIN)/corrupt
	-chmod $(PROGMOD) $(OLDBIN)/corrupt
	mv corrupt $(BINDIR)/corrupt
	chmod $(PROGMOD) $(BINDIR)/corrupt
	-diffmk $(MANDIR)/man1/corrupt.1 corrupt.1 man.diff
	@echo diffmked man page left in man.diff
	cp corrupt.1 $(MANDIR)/man1/corrupt.1
	chmod $(MANMOD) $(MANDIR)/man1/corrupt.1

clean:	
	rm -f $(OBJS) corrupt 
	
lint:	$(SRCS)
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIB) -lm > lint
